package com.itheima.myprintstream;

import java.io.*;

public class MyPrintStream2 {
    public static void main(String[] args) throws IOException {
        //创建字符打印流的对象
        PrintWriter pw = new PrintWriter(new FileWriter("myio\\a.txt"));

        pw.println(97);
        pw.print("hehe");
        pw.println();
        pw.printf("%s 爱上了 %s", "阿珍", "阿庆");

        pw.close();
    }
}
